import {myRequest} from "../utils/request.js"

//登录
export function login(data) {
	return myRequest({
		url: 'auth/login',
		method: "POST",
		data
	})
}
//注册
export function register(data) {
	return myRequest({
		url: 'auth/register',
		method: "POST",
		data
	})
}
//初次绑定手机号
export function bindingPhone(data) {
	return myRequest({
		url: 'member/bindingPhone',
		method: "POST",
		data
	})
}
//忘记密码
export function forgetPassword(data) {
	return myRequest({
		url: 'auth/forgetPassword',
		method: "POST",
		data
	})
}
//验证码
export function sendSms(data) {
	return myRequest({
		url: 'auth/sendSms',
		method: "POST",
		data
	})
}
//用户协议/隐私协议
export function registerAgreement(data) {
	return myRequest({
		url: 'agreement/registerAgreement',
		method: "POST",
		data:data||{}
	})
}
